package org.alex.jdk8.inface;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

public class Sort {
	public static void main(String[] args) {
		List<String> list = Arrays.asList("hello", "word", "first", "secoed", "five");
		Collections.sort(list, (a, b) -> {
			return a.compareTo(b);
		});
		list.stream().forEach((a) -> {
			System.out.println(a);
		});
	}
}
